package com.lwm.service;

import com.github.pagehelper.PageInfo;
import com.lwm.domain.ProjectMaintain;
import com.lwm.domain.ResponseResult;

import java.util.List;

public interface ProjectMaintainService {

    /**
     * 保存
     *
     * @param projectMaintain 项目维护实体类
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> save(ProjectMaintain projectMaintain);

    /**
     * 删除
     *
     * @param ids id
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> remove(List<Long> ids);

    /**
     * 编辑
     *
     * @param projectMaintain 项目维护实体类
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> edit(ProjectMaintain projectMaintain);

    /**
     * 分页
     *
     * @param page            页码
     * @param size            数量
     * @param projectMaintain 项目维护实体类
     * @return {@link ResponseResult}<{@link PageInfo}<{@link ProjectMaintain}>>
     */
    ResponseResult<PageInfo<ProjectMaintain>> page(Integer page,Integer size,ProjectMaintain projectMaintain);

    /**
     * 根据id获取
     *
     * @param id 项目id
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> getById(Long id);
}
